﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace ProjetoFinal
{
    class Instructions
    {
        Texture2D instructionsScreen;
        Texture2D button;

        public Instructions()
        {
        }


        public void LoadContent(ContentManager content)
        {
            instructionsScreen = content.Load<Texture2D>("instructionsScreen");
            button = content.Load<Texture2D>("backI");
        }


        public void Update(KeyboardState tecladoAtual, KeyboardState tecladoAnterior)
        {
            if (tecladoAtual.IsKeyDown(Keys.Space) && !tecladoAnterior.IsKeyDown(Keys.Space))
                Manager.nowState = Manager.GameState.Menu;

           tecladoAtual = tecladoAnterior;
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Begin();
            spriteBatch.Draw(instructionsScreen, new Vector2(0, 0), Color.White);
            spriteBatch.Draw(button, new Vector2(455, 695), Color.White);
            spriteBatch.End();
        }
    }
}
